package com.chaos.auth.config.grant.token;

import com.chaos.auth.config.grant.grant.GrantType;
import org.springframework.security.core.Authentication;
import org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken;

import java.util.Map;

public class AppOpenIdAuthenticationToken extends OAuth2AuthorizationGrantAuthenticationToken {

    private static final long serialVersionUID = 550L;

    private final String code;


    public AppOpenIdAuthenticationToken(String code, Authentication clientPrincipal, Map<String,
            Object> additionalParameters) {
        super(GrantType.OPEN_ID, clientPrincipal, additionalParameters);
        this.code = code;
    }

    public String getCode() {
        return this.code;
    }



}
